//
//  PassengerRepository.h
//  WebPDA
//
//  Created by Justin Yip on 8/5/10.
//  Copyright 2010 TenNights.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@class Passenger;

@interface PassengerRepository : NSObject {
	@private
	NSArray *rowArray;
	sqlite3 *database;
	NSMutableDictionary *cache;
}
+(PassengerRepository*)sharedRepository;
-(Passenger*)passengerInRow:(NSUInteger)row atColumn:(NSUInteger)column;
/*
 * 获取所有有人坐的座位行
 */
-(NSArray*)getRows;
//-(NSUInteger)getMaxRows;
-(NSUInteger)numberOfPassengerInRow:(NSUInteger)row;
@property(nonatomic,retain)NSArray *rowArray;
@property(nonatomic,assign)sqlite3 *database;
@end
